﻿<%@ Page Title="48小时配送率(低值)" Language="C#" MasterPageFile="~/Master/MasterPage.master" 
    AutoEventWireup="true" CodeBehind="CompanyPS_Rate_DZ.aspx.cs" Inherits="HZ.Supervise.Web.Company.CompanyPS_Rate_DZ" %>

<%@ Register Src="~/Common/QueryControl.ascx" TagName="QueryControl" TagPrefix="uc1" %>
<%@ Register Src="../Common/ChartControl.ascx" TagName="ChartControl" TagPrefix="uc2" %>
<%@ Register Src="~/Common/AreaControls.ascx" TagName="AreaControl" TagPrefix="uc3" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <script language="javascript" type="text/javascript">
        function document.onkeydown() {
            //通过document.getElementById获得按钮的对象
            var btn = document.getElementById('<%=btnQuery.ClientID %>');
            //获取到Enter的键值
            if (event.keyCode == 13) {
                //触发click事件
                btn.click();
                //阻止浏览器执行事件相关的默认动作
                event.returnValue = false;
            }
        }
    </script>

    <div id="tabnav">
        <ul>
            <li><a href="CompanyPS_Rate.aspx">48小时配送率(高值)</a></li>
            <li  class="active"><a href="javascript:void(0)">48小时配送率(低值)</a></li>
        </ul>
    </div>
    <div id="tabcontent">
        <asp:Panel ID="pnlQuery" runat="server">
            <table class="querylist">
                <tr>
                    <td>
                        <table class="querylist">
                            <tr>
                                <td align="right">
                                    配送企业：
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtCompanyName_PS" runat="server"></asp:TextBox>
                                </td>
                                <td align="right">
                                    <asp:Label ID="lblStartTime" runat="server" Text="起始时间："></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtTimeFrom" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                                </td>
                                <td align="right">
                                    <asp:Label ID="lblEndTime" runat="server" Text="截至时间："></asp:Label>
                                </td>
                                <td align="left">
                                    <asp:TextBox ID="txtTimeTo" runat="server" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',readOnly:true})"></asp:TextBox>
                                </td>
                            </tr>
                        </table>
                    </td>
                    <td width="140px" valign="middle">
                        <asp:Button ID="btnQuery" runat="server" Text="查 询" OnClick="btnQuery_Click" CssClass="btn" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <asp:GridView ID="gvwInfo" runat="server" EmptyDataText="暂无符合条件的数据！" AutoGenerateColumns="false"
        CssClass="mainlist" EnableViewState="true" DataKeyNames="CompanyID">
        <Columns>
            <asp:TemplateField HeaderText="序号">
                <ItemTemplate>
                    <%#Container.DataItemIndex + 1 + AspNetPager1.PageSize * (AspNetPager1.CurrentPageIndex-1) %></ItemTemplate>
                <HeaderStyle Width="30px" />
            </asp:TemplateField>
            <asp:BoundField DataField="CompanyName" HeaderText="配送企业" />
            <asp:BoundField DataField="PurchaseAmount" HeaderText="订单总金额（元）" />
            <asp:BoundField DataField="WarehouseAmount" HeaderText="48小时配送金额（元）"/>
            <asp:BoundField DataField="Rate48" HeaderText="48小时配送率（%）" />
        </Columns>
    </asp:GridView>
    <div class="page">
    </div>
    <span style="width: 30%; float: left; text-align: left">
        <hz:HzButton ID="btnExcel" runat="server" CssClass="btn" Text="导出数据" OnClick="btnExcel_Click" /></span><span
            style="width: 70%; text-align: right; float: right">
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" OnPageChanged="AspNetPager1_OnPageChanged">
            </webdiyer:AspNetPager>
        </span>
    <br />
    <br />
    <asp:Label ID="lblCount" runat="server"></asp:Label>
    <div class="listip">
        <ul>
            <li>说明:<span>48小时到货率 = 48小时到货金额 / 订单总金额     </span> </li> <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp<span>“48小时”指的是：自企业收到订单开始计时，一直到企业将药品送到医院，且被医院入库期间所花费在时间 </span></li>
        </ul>
    </div>
</asp:Content>
